export default {
    data: {
        title: "",
        index: 0,
        myData: [
            {
                "imgSrc": "/common/icon/home.png", "title": "首页", imgSrcActive: "/common/icon/home-active.png"
            },
            {
                "imgSrc": "/common/icon/scene.png", "title": "场景", imgSrcActive: "/common/icon/scene-active.png"
            },
            {
                "imgSrc": "/common/icon/message.png", "title": "消息", imgSrcActive: "/common/icon/message-active.png"
            },
            {
                "imgSrc": "/common/icon/myinfo.png", "title": "我的", imgSrcActive: "/common/icon/myinfo-active.png"
            }
        ]
    },
    onInit() {
        this.title = this.$t('strings.world');
    },
    changeMenu(event) {
        console.info('触发了自定义事件')
        this.index = event.detail.index;
        console.info('index=' + this.index)
    }
}



